<?php
	$x = new erdfFuncs();
	if(isset($_POST['valpere'])){
		$valPere_id = $_POST['valpere'];
		$val = $x->getOptions('typedossier','id','description','valPere_id ='.$valPere_id,true);
		$val = $x->getOptions('typedossier','id','description','',true);
					  $type = new sfWidgetFormChoice(array('multiple' => false,
							  'expanded' => false,
							  'choices'  => $val,));
	echo $type->render('demandes2_type', '', array('class' => 'option'));
	}